package main

import "fmt"

func printSumFromAToB(a int, b int) {
	var sum = 0
	for i := a; i <= b; i++ {
		sum += i
	}
	fmt.Println(sum)
}

func main() {
	printSumFromAToB(1, 100)
	printSumFromAToB(10, 1000)
}
